/*Created under the GNU General Public Liseance Project:Sinhala Synonyms Supporter Author S.N.S.Dewasurendra
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Dict;

/**
 *
 * @author User
 */
import java.io.Serializable;
import java.util.SortedMap;
import java.util.TreeMap;

public class GenaralDictionary implements Serializable {   //implements serializable interface to store objects

  
    private SortedMap<String, String> wordMap=new TreeMap();
    

    public GenaralDictionary() {
       

    }

    /** Creates a new instance of GeneralDictionary */
    public SortedMap getMap() {
        return wordMap;

    }

    /** inserts words into the treemap*/
    public void insert(String word, String meaning) {
        wordMap.put(word, meaning);
     

    }


    //searching the word.
    public String searchWord(String word){
      
         return wordMap.get(word);

       
    }

}